package com.frogs.ucenter.service.daoimpl;

import com.frogs.framework.base.dao.BaseDao;
import com.frogs.framework.base.service.daoimpl.BaseServiceImpl;
import com.frogs.ucenter.dao.UserProtectionDao;
import com.frogs.ucenter.entity.UserProtection;
import com.frogs.ucenter.service.UserProtectionService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(propagation=Propagation.REQUIRED, rollbackFor=Exception.class) 
@Service("userProtectionService")
public class UserProtectionServiceImpl extends BaseServiceImpl<UserProtection> implements UserProtectionService {
    @Autowired
    private UserProtectionDao userProtectionDao;

    public UserProtectionServiceImpl() {
        super();
    }

    public UserProtectionDao getUserProtectionDao() {
        return userProtectionDao;
    }

    /**
     * Don't remove or edit it.
     */
    @Override
    protected BaseDao<UserProtection> getBaseDao() {
        return userProtectionDao;
    }

    public void setUserProtectionDao(UserProtectionDao userProtectionDao) {
        this.userProtectionDao = userProtectionDao;
    }
}